package com.itheima.info.manager.system.factory;

import com.itheima.info.manager.system.controller.IStudentController;
import com.itheima.info.manager.system.controller.ITeacherController;
import com.itheima.info.manager.system.controller.StudentControllerImpl;
import com.itheima.info.manager.system.controller.TeacherControllerImpl;
import com.itheima.info.manager.system.dao.IStudentDao;
import com.itheima.info.manager.system.dao.StudentDaoImpl;
import com.itheima.info.manager.system.service.IStudentService;
import com.itheima.info.manager.system.service.StudentServiceImpl;

public class Factory {
    public static IStudentController getStudentController() {
        return new StudentControllerImpl();
    }

    /*public static ITeacherController getTeacherController() {
        return new TeacherControllerImpl();
    }*/
    public static IStudentService getStudentService() {
        return new StudentServiceImpl();
    }
    public static IStudentDao getStudentDao() {
        return new StudentDaoImpl();
    }

}
